<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
  <channel>
    <title><%= @blog.title %></title> 
    <link><%= url_for(:only_path => false, :action => :index, :id => nil) %></link> 
    <description><%= @blog.subtitle %></description>
    <language>zh-CN</language>
    <pubDate><%= CGI.rfc1123_date(@entries.first.created_at) if @entries.any? %></pubDate>
    <generator>Eros-Blog rails version</generator>
    <% for entry in @entries %>
      <item>
        <link><%= url_for :only_path => false, :action => :show, :id => entry.id %></link>
        <title><%= entry.title %></title>
        <author><%= @blog.user.name %></author>
        <category><%= entry.category.name %></category>
        <pubDate><%= CGI.rfc1123_date(entry.created_at) %></pubDate>
        <guid><%= url_for :only_path => false, :action => :show, :id => entry.id %></guid>
        <description><![CDATA[<%= entry.content %>]]></description>
      </item>		
    <% end %>
  </channel>
</rss>